<?php
$oJobs = JobHandler::getJobs();
$sUrgencies = $oJobs[$_SESSION['iJobID']]->sUrgencies;
?>
<div id="layer_urgency_add" class="hidden" style="visibility: visible;">
<form action="index.php" method="post" name="form_urgency_add">
<input type="hidden" name="sAction" value="job-urgencyadd">
<input type="hidden" name="sView" value="job-view">
<table class="boxborder" cellspacing="0">
	<tr>
		<td class="boxhandle" colspan="2"><?php print msg('New urgency') ?></td>
	</tr>
	<tr>
		<td class="fieldname"><?php print msg('Text') ?>:</td>
		<td class="fieldvalue"><input type="text" name="sCaption" id="focus_job_urgencyadd"></td>
	</tr>
	<tr>
		<td class="fieldname"><?php print msg('Location') ?>:</td>
		<td class="fieldvalue">
			<input type="radio" name="sInsertWhere" value="before"><?php print msg('Insert before') ?><br>
			<input type="radio" name="sInsertWhere" value="after" checked><?php print msg('Insert after') ?><br>
			<select name="iPos">
<?php
for ($i = 0; $i < count($sUrgencies); $i++)
{
	echo '<option value="'.$i.'">'.$sUrgencies[$i].'</option>';
}
?>
			</select>
		</td>
	</tr>
	<tr>
		<td class="boxbody" style="text-align: center;" colspan="2">
			<input type="submit" value="<?php print msg('OK') ?>">
			<input type="button" value="<?php print msg('Cancel') ?>" onClick="showBox('job-urgencies');">
		</td>
	</tr>
</table>
</form>
</div>
